﻿using ArabDynamicsUtility;
using System;

namespace TestUrl2Embed
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string strUrl = "http://www.youtube.com/watch?v=hnRqQDfmQaM";
            Literal2.Text = strUrl;
            Url2Embed objUrl2Embed = Url2Embed.parseUrl(strUrl);
            Image1.ImageUrl = objUrl2Embed.getImageURL();
            Literal1.Text = objUrl2Embed.getEmbedCode();
        }
    }
}